<?php 

namespace app\admin\model;

use think\Model;

class Wxapplog extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $name = 'wxapp_log';

    // 自动写入时间戳
    protected $autoWriteTimestamp = true;

    public function getList($map=[],$where=[])
    {
        $field = "w.title as wtitle,wl.*";
        return $this->alias('wl')->join('admin_wxapp w','wl.wxapp_id=w.id')
                ->where($where)->where($map)->field($field)
                ->order('wl.id desc')
                ->paginate();
    }
}